package com.publicize.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.publicize.entity.ModulePicture;
import com.publicize.mapper.ModulePictureMapper;
import com.publicize.service.ModulePictureService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 富文本编辑器图片路径 服务实现类
 * </p>
 *
 * @author bs
 * @since 2021-03-16
 */
@Service
public class ModulePictureServiceImpl extends ServiceImpl<ModulePictureMapper, ModulePicture> implements ModulePictureService {

    @Override
    public List<ModulePicture> queryByModuleId(String moduleId) {
        QueryWrapper<ModulePicture> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("module_id",moduleId);
        baseMapper.selectList(queryWrapper);
        return baseMapper.selectList(queryWrapper);
    }
}
